To create a Java application that uses the connector object’s executeString method to print “Hello World” in the command window, complete the following steps.
Note: The file for this example, hello_example.java, is located in the examples/doc/bridges/java subdirectory of the IDL distribution.
cd IDL_DIR\examples\doc\bridges\java
javac -classpath ".;IDL_DIR\resource\bridges\export\java\javaidlb.jar" hello_example.java
java -classpath ".;IDL_DIR\resource\bridges\export\java\javaidlb.jar" hello_example
After compiling and running the project, “Hello World!” will appear in the command window.
See Note on Running the Java Examples for information on executing Java commands on a non-Windows platform.
An expanded “Hello World” example that allows you to optionally say hello from someone can be found in Hello World Java Example with Additional Method to create the necessary wrapper object files.